package com.java.reflect;

public class User extends UserPar {
    @UserAnno(desc = "User-ID字段")
    private Integer id ;
    @UserAnno(desc = "User-Name字段")
    private String name ;
    @UserAnno(desc = "User-Email字段")
    public String email ;
    public User() {
    }

    public User(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    private User(Integer id) {
        this.id = id;
    }

    protected User(String name) {
        this.name = name;
    }

    private void sayHi (String to){
        System.out.println("hello:"+to);
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                '}';
    }

    @UserAnno(desc = "User-getId方法")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
